import * as tslib_1 from "tslib";
import { Entity, NgField, NgObject, EntityList, NgList, NgEntity } from '@farris/devkit';
import { ZzryEntity } from './zzryentity';
import { PathHierarchyInfoF6b2Entity } from './pathhierarchyinfof6b2entity';
var ZzglEntity = /** @class */ (function (_super) {
    tslib_1.__extends(ZzglEntity, _super);
    function ZzglEntity() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ID',
            dataField: 'id',
            primary: true,
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ID',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ZzglEntity.prototype, "id", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'Version',
            dataField: 'version',
            originalDataFieldType: 'DateTime',
            initValue: '0001-01-01T00:00:00',
            path: 'Version',
            enableTimeZone: true,
        }),
        tslib_1.__metadata("design:type", String)
    ], ZzglEntity.prototype, "version", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ProjectID',
            dataField: 'projectID',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'ProjectID',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ZzglEntity.prototype, "projectID", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'zzbh',
            dataField: 'zzbh',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'zzbh',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ZzglEntity.prototype, "zzbh", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'zzmc',
            dataField: 'zzmc',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'zzmc',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [512],
                    message: '最大长度为512',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ZzglEntity.prototype, "zzmc", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'zzlb',
            dataField: 'zzlb',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'zzlb',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [50],
                    message: '最大长度为50',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ZzglEntity.prototype, "zzlb", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'ProjectNote',
            dataField: 'projectNote',
            originalDataFieldType: 'Text',
            initValue: '',
            path: 'ProjectNote',
        }),
        tslib_1.__metadata("design:type", Object)
    ], ZzglEntity.prototype, "projectNote", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'fgld',
            dataField: 'fgld',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'fgld',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ZzglEntity.prototype, "fgld", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'fzr',
            dataField: 'fzr',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'fzr',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ZzglEntity.prototype, "fzr", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'sszz',
            dataField: 'sszz',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'sszz',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], ZzglEntity.prototype, "sszz", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'cgzzfield',
            dataField: 'cgzzfield',
            originalDataFieldType: 'Boolean',
            initValue: false,
            path: 'cgzzfield',
        }),
        tslib_1.__metadata("design:type", Object)
    ], ZzglEntity.prototype, "cgzzfield", void 0);
    tslib_1.__decorate([
        NgList({
            dataField: 'zzrys',
            originalDataField: '',
            type: ZzryEntity
        }),
        tslib_1.__metadata("design:type", EntityList)
    ], ZzglEntity.prototype, "zzrys", void 0);
    tslib_1.__decorate([
        NgObject({
            dataField: 'fjxx',
            originalDataField: 'fjxx',
            hierarchyType: 'path',
            type: PathHierarchyInfoF6b2Entity
        }),
        tslib_1.__metadata("design:type", PathHierarchyInfoF6b2Entity)
    ], ZzglEntity.prototype, "fjxx", void 0);
    ZzglEntity = tslib_1.__decorate([
        NgEntity({
            originalCode: "zzgl",
            nodeCode: "zzgls"
        })
    ], ZzglEntity);
    return ZzglEntity;
}(Entity));
export { ZzglEntity };
